<?php
class CustomStyle extends ObjectModel 
{
    public $id;
    public $id_project;
    public $selector;
    public $style;
    
    public static $definition = array(
        'table' => 'pt_custom_style',
        'primary' => 'id_style',
        'multilang' => false,
        'fields' => array(
            'id_project' => array(
                'type' => ObjectModel::TYPE_INT,
                'required' => true, 
                'validate' => 'isUnsignedId'
            ),
            'selector' => array(
                'type' => ObjectModel::TYPE_STRING,
                'required' => true, 
            ),
            'style' => array(
                'type' => ObjectModel::TYPE_STRING,
            )
        )
    );
}